//
//  NITextField.m
//  AIWAYS
//
//  Created by Marx on 2018/6/11.
//  Copyright © 2018年 wlq. All rights reserved.
//

#import "NITextField.h"

@implementation NITextField


- (BOOL)canPerformAction:(SEL)action withSender:(id)sender

{
    if (_IsSecure) {
        if(action ==@selector(paste:))//禁止粘贴
            
            return NO;
        
        if(action ==@selector(select:))// 禁止选择
            
            return NO;
        
        if(action ==@selector(selectAll:))// 禁止全选
            
            return NO;
    }
    
    
    return[super canPerformAction:action withSender:sender];
    
}

@end
